package PolymorphicHomeworkTest4;

public class WarShip extends Weapon{
    public void attack(){
        System.out.println("发射了一颗鱼雷");
    }
    public void move(){
        System.out.println("军舰航行了50米");
    }}
